package cate.common.table.pvp.guildrace;

import cate.common.table.ESheet;
import easy.java.dev.note.NoteClass;

@NoteClass(value = "协会PVP 奖励")
public class GuildRaceRankRwdSheet extends ESheet<GuildRaceRankRwdRow> {

    @Override
    public String getSheetName() {
        return "协会战奖励";
    }

    public String getReward(int rankNo) {
        for (GuildRaceRankRwdRow row : this.getList()) {
            if (rankNo >= row.begin && rankNo <= row.end) {
                return row.rewardStr;
            }
        }
        return null;
    }
}
